package com.yanboo.modules.mnt.service.dto;

import com.yanboo.constant.ProcessorStatus;
import lombok.Data;
import java.sql.Timestamp;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import lombok.experimental.Accessors;

/**
 * @description /
 * @author fdq
 * @date 2024-03-27
 **/
@Data
@Accessors(chain = true)
public class ProcessorDto implements Serializable {

    /** 主键 */
    /** 防止精度丢失 */
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    /** 命令 */
    private String command;

    /** 进程id */
    private Long pid;

    /** 状态 */
    private ProcessorStatus status;

    /** 名称 */
    private String name;

    /** 目标状态 */
    private ProcessorStatus targetStatus;

    private String createBy;

    private Timestamp createTime;

    private String updateBy;

    private Timestamp updateTime;

    /** 描述 */
    private String description;
}
